package demo02;

public class Person {

    private  int age;

    public void setAge(int age) {
        if (age < 0 || age > 150 ){
            System.out.println("操作不合法");
        }else {this.age = age;}




    }
}